
package com.dps.omc.service.impl;
import com.dps.omc.dao.IBizUnitDAO;
import com.dps.omc.model.BizUnit;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dps.common.service.impl.AbstractPageService;
import com.dps.omc.service.IBizUnitService;

import java.util.List;

@SuppressWarnings("unchecked")
@Service("BizUnitServiceImpl")

public class BizUnitServiceImpl extends AbstractPageService<IBizUnitDAO,BizUnit> implements IBizUnitService {

	@Autowired
	private IBizUnitDAO bizUnitDAO;
	@Override
	public boolean getEnableDataPerm() {
		// TODO Auto-generated method stub
		return false;
	}
	@Override
	public IBizUnitDAO getDao() {
		return bizUnitDAO;
	}

	@Override
	public List<BizUnit> findListByUserRights(String userId) {
		return getDao().findListByUserRights(userId);
	}
}
